package com.bcn.login_mybatisplus_demo.weight.mapper;

import com.bcn.login_mybatisplus_demo.weight.domain.TAppWeight;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 【请填写功能名称】Mapper接口
 * 
 * @author administrator
 * @date 2025-03-11
 */
public interface TAppWeightMapper 
{
    /**
     * 查询【请填写功能名称】
     * 
     * @param weightId 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    public TAppWeight selectTAppWeightById(Long weightId);

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param tAppWeight 【请填写功能名称】
     * @return 【请填写功能名称】集合
     */
    public List<TAppWeight> selectTAppWeightList(TAppWeight tAppWeight);
    public TAppWeight selectTAppMaxWeight(TAppWeight weight);

    public TAppWeight selectTAppWeightDay(@Param("weightRecordDate")String weightRecordDate,@Param("userId")Long userId);

    /**
     * 新增【请填写功能名称】
     * 
     * @param tAppWeight 【请填写功能名称】
     * @return 结果
     */
    public int insertTAppWeight(TAppWeight tAppWeight);

    /**
     * 修改【请填写功能名称】
     * 
     * @param tAppWeight 【请填写功能名称】
     * @return 结果
     */
    public int updateTAppWeight(TAppWeight tAppWeight);

    /**
     * 删除【请填写功能名称】
     * 
     * @param weightId 【请填写功能名称】ID
     * @return 结果
     */
    public int deleteTAppWeightById(Long weightId);

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param weightIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteTAppWeightByIds(String[] weightIds);

    /**
     * 报表
     * @param number
     * @return
     */
    List<TAppWeight> selectTAppWeightRepoetList(@Param("number") Integer number);
}
